package com.hazardSoft.eStore.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.hazardSoft.eStore.utils.QueryConstants;

@Entity
@NamedQueries({
	@NamedQuery(name = QueryConstants.QUERY_LIST_OFFER_TYPES, query = "FROM OfferType o ORDER BY o.name ASC")
})
@Table(name="offer_type")
public class OfferType implements Serializable {
	@Id
	private Integer id;

	@Lob
	private String name;

//	@OneToMany(mappedBy="offertype")
//	private Set<Offer> offerCollection;

	private static final long serialVersionUID = 1L;

	public OfferType() {
		super();
	}

	public OfferType(Integer id) {
		super();
		this.id = id;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

//	public Set<Offer> getOfferCollection() {
//		return this.offerCollection;
//	}
//
//	public void setOfferCollection(Set<Offer> offerCollection) {
//		this.offerCollection = offerCollection;
//	}

}
